/**
 * @flow
 */
let lastClickTime = 0

const ClickUtil = {
  canClick() {
    const now = new Date().getTime()
    if (now - lastClickTime > 500) {
      lastClickTime = now
      return true
    } else {
      return false
    }
  },
}
export default ClickUtil
